/* 字体导入 */
@import './assets/fonts/fonts-google.css';
/* Ant Design X 定制样式 */
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

body, button, input, select, textarea {
  font-family: 'Inter', sans-serif;
}

/* 定制组件样式 */
.ant-menu-item-selected {
  background-color: rgba(111, 76, 255, 0.1) !important;
  color: #6F4CFF !important;
}

.ant-btn-primary {
  background-color: #6F4CFF !important;
}

.ant-btn-primary:hover {
  background-color: #8A6FFF !important;
}

/* 自定义动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .ant-layout-sider {
    display: none;
  }
  
  .ant-layout-content {
    margin-left: 0 !important;
  }
}

/* 自定义字体样式 */
.gradient-text {
  background: linear-gradient(to right, #6F4CFF, #A78BFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-gradient-bg {
  background: linear-gradient(180deg, #1a1d22 0%, #111318 100%);
}

.glow-effect {
  filter: drop-shadow(0 0 10px rgba(111, 76, 255, 0.5));
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}
